def height(h):
    for i in range(h):
        for j in range(h - i -1):
            print(' ', end='')
        print('*', end='')
        for j in range(i * 2):
            print('*', end='')
        print('')
    return 0

h = 5
height(h)